<?php global $has_permit; ?>
<div class="clearfix auto_height">
    <div class="db_left bl">
        <?php $this->load->view('medical/object/side_block'); ?>
    </div>
    <div class="db_right bl">
        <?php if ($has_permit) :?>
            <div id="ajax_result">
                <?php $this->load->view('medical/parts/ajax/list'); ?>
            </div>
        <?php else :?>
        <?php $this->load->view('layouts/restricted'); ?>
        <?php endif; ?>
    </div>
</div>

<script type="text/javascript" src="<?php echo BASE_URL; ?>js/admin/medical/object/function.js"></script>
<script type="text/javascript">
    $(".record_per_page").val("<?php echo $record_per_page; ?>");
    $(".record_per_page").change(function() {
        var val = $(this).val();
        $(".record_per_page").val(val);
        return admin_medical_parts.act_filter();
    });
</script>